<div class="layui-form" lay-filter="LAY-home-cms-listform" id="LAY-home-cms-listform" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">列表名称</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="cat_name" value="{{ d.params.cat_name || '' }}" lay-verify="required"
                       placeholder="请输入列表名称" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">导航</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" id="navName" value="{{ d.params.navName }}"  lay-verify="required" class="layui-input" readonly/>
                <input type="hidden" id="navId" name="nav_id" value="{{ d.params.nav_id }}" class="layui-input"/>
            </script>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">显示</label>
        <div class="layui-input-inline">

            <input type="checkbox" name="is_show" title="开启|关闭" value="1" lay-skin="switch"
                   {{# if(d.data.is_show==undefined){d.data.is_show=1} }}
                   {{# if(d.data.is_show){ }}
                   checked
                   {{# } }}
            >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">列表描述</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <textarea name="ms" lay-verify="required" style="width: 400px; height: 150px;" autocomplete="off"
                          class="layui-textarea">
                    {{ d.params.ms }}
                  </textarea>
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">封面尺寸建议</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <textarea name="size_suggest" style="width: 400px; height: 150px;"
                          autocomplete="off"
                          class="layui-textarea">
                    {{ d.params.size_suggest }}
                  </textarea>
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">自定义URL</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="urlrewriter" id="rewrite_url" value="{{ d.params.urlrewriter || '' }}" lay-verify="required"
                       placeholder="请输入静态化url" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>

<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">分类标识</label>-->
<!--        <div class="layui-input-inline">-->
<!--            <script type="text/html" template>-->
<!--                <input type="text" name="en_cat_name" value="{{ d.params.en_cat_name || '' }}"-->
<!--                       placeholder="请输入分类标识" autocomplete="off" class="layui-input">-->
<!--            </script>-->
<!--        </div>-->
<!--    </div>-->

    <div class="layui-form-item">
        <label class="layui-form-label">SEO标题</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="pagetitle" value="{{ d.params.pagetitle || '' }}" placeholder="请输入网页标题"
                       autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">SEO关键词</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="pagekeywords" value="{{ d.params.pagekeywords || '' }}"
                       placeholder="请输入关键词" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">SEO描述</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <textarea name="pagedesc" style="width: 400px; height: 150px;" autocomplete="off"
                          class="layui-textarea">
            {{ d.params.pagedesc }}
          </textarea>
            </script>
        </div>
    </div>
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">跳转url</label>-->
<!--        <div class="layui-input-inline">-->
<!--            <script type="text/html" template>-->
<!--                <input type="text" name="url" value="{{ d.params.url || '' }}"-->
<!--                       placeholder="请输入跳转url" autocomplete="off" class="layui-input">-->
<!--            </script>-->
<!--        </div>-->
<!--    </div>-->
    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="number" lay-affix="number" min="0" name="sort_order" value="{{ d.params.sort_order || 0 }}"
                        placeholder="请输入排序" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <script type="text/html" template>
        <input type="hidden" name="cat_id" value="{{ d.params.cat_id || '' }}">
    </script>
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="LAY-home-cms-listform-submit" value="保存" class="layui-btn">
        </div>
    </div>
</div>
<script>
    layui.use('common', function (common) {
        common.formDropdownEditor(
            window.globalConfig.url_navigate_list,
            'navName',
            'navId',
            'navName',
            'id',
            'name'
        )
    });
</script>
